//
//  Histogram.swift
//  Sorts
//
//  Created by lhc on 2023/12/10.
//

import SwiftUI

struct Histogram: View {
    
    @State var num: Int = 0
    var body: some View {
        Rectangle()
            .fill(.blue)
            .frame(width: 10, height: CGFloat((num + 3) * 3))
    }
}

#Preview {
    Histogram(num: 10)
}

#Preview {
    Histogram(num: 20)
}
